﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Analysis
{
    public class PresentationHelper
    {
        public string TranslateWarning(AnalysisKind kind)
        {
            switch (kind)
            {
                case AnalysisKind.NewExpr:
                    return "Type from solution created locally";
                case AnalysisKind.FactoryMethod:
                    return "Object created from factory method";
                case AnalysisKind.StaticMethod:
                    return "Static method invoked locally";
                case AnalysisKind.NewSimpleTypes:
                    return "Type created locally which is not a simple type";

                case AnalysisKind.CyclomaticComplexity:
                    return "Metod has a complexity that makes it hard to test. It should be at most 10)";
                default:
                    return "";
            }
        }
    }
}
